home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
sbin
/
lilo
< prev
next >
Wrap
Text File
|
2008-05-15
|
602b
|
24 lines
#!/bin/sh -e
# if chroot.
if [ "$1" = "-r" -a "$2" != "" ]; then
if [ -c /dev/.devfsd -a ! -c $2/dev/.devfsd ]; then
mount none $2/dev -t devfs
fi
# use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
$0.real "$@"
if [ -c /dev/.devfsd ]; then
umount $2/dev
fi
else
# use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
$0.real "$@"
if [ "$1" != "-t" ]; then
rm -f /boot/boot.b.preserved* /boot/boot-text.b.preserved* /boot/boot-menu.b.preserved* /boot/chain.b.preserved* /boot/os2_d.b.preserved* /boot/boot-bmp.b.preserved
fi
fi